<script src="/js/Register.js?{echo time();}"></script>
{if !isset($logged)}
<h1>Zaloguj się</h1>
<form role="form" class="form-horizontal" id="formLogin" method="post" action="login">
    <div class="form-group">
        <label class="col-lg-3" for="inputLoginEmail">E-mail</label>
        <input required class="col-lg-2 input-sm" type="email" id="inputLoginEmail" placeholder="wpisz swój adres email" name="inputLoginEmail" >  
        {if isset($errors)}
        <span class="alert-danger">{echo \view\View::showErrors($errors, "Email")}</span>
        {/if}
    </div>
    <div class="form-group">
        <label class="col-lg-3" for="inputLoginPassword">Hasło</label>
        <input required class="col-lg-2 input-sm" type="password" id="inputRegisterPassword"  name="inputLoginPassword" placeholder="wpisz swoje hasło" maxlength="20" >       
        <span id="inputLoginPasswordError" class="alert-danger">
            {if isset($errors)}
            {echo \view\View::showErrors($errors, "Password")}
            {/if}
        </span>
    </div>
    <button type="submit" class="btn btn-default">zaloguj się</button>
</form>
{/if}
{else}
<h1>Witaj $person->Name $person->Surname</h1>
<a href="logout">wyloguj się</a>
{/else}